<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form name="serForm" action="doFileUpload1.do" method="post"
		enctype="multipart/form-data">
		<h1>字节流上传文件:</h1>
		<input type="text" id="txtUserName" name="username" placeholder="用户姓名">
		<input type="file" name="file"> <input type="submit"
			value="upload" />
	</form>

	<form name="Form2" action="doFileUpload2.do" method="post"
		enctype="multipart/form-data">
		<h1>multipart方式上传文件：</h1>
		<input type="text" id="txtUserName" name="username" placeholder="用户姓名">
		<input type="file" name="file"> <input type="submit"
			value="提交" />
	</form>

	<form name="Form2" action="doFileUpload3.do" method="post"
		enctype="multipart/form-data">
		<h1>springmvc框架方法上传文件：</h1>
		<input type="text" id="txtUserName" name="username" placeholder="用户姓名">
		<input type="file" name="file"> <input type="submit"
			value="upload" />
	</form>
</body>
</html>